<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class PtOrder extends Model
{
    protected $table = 'pt_order';		//related table name
    protected $guarded = [];

    //访问器：
    public function getMoneyAttribute($value)
    {
        try {
            return $value/100;
        } catch (DecryptException $e) {
            throw $e;
        }
    }
}
